using UnityEngine;

namespace MyFramework.Scene
{
    [CreateAssetMenu(fileName = "LoadSceneConfig", menuName = "New Configs/Scene Config", order = 0)]
    public class LoadSceneConfig : ScriptableObject
    {
        /// <summary>
        /// 是否预加载下一个场景
        /// </summary>
        public bool preloadNextScene = true;
        
        /// <summary>
        /// 最小加载时间，避免闪烁
        /// </summary>
        public float minLoadingTime = 1.0f;
        
        /// <summary>
        /// 最大缓存场景数量
        /// </summary>
        public int maxCacheSize = 3;
        
        /// <summary>
        /// 缓存生存时间（秒）
        /// </summary>
        public float cacheLifeTime = 300f;
    }
}